/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_express_element.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_EXPRESS_ELEMENT
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_express_element.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_EXPRESS_ELEMENT::CTable_PPM_EXPRESS_ELEMENT( )
 :NPCRecordSet( )
{
  setTableName( "PPM_EXPRESS_ELEMENT" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EXPRESS_ID.setField( "EXPRESS_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EXPRESS_ID );
  ELEMENT_ID.setField( "ELEMENT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ELEMENT_ID );
  ELEMENT_TYPE.setField( "ELEMENT_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( ELEMENT_TYPE );
  SEQ.setField( "SEQ", DATA_DOUBLE, 22, 0 );
  makeTableItem( SEQ );
}


CTable_PPM_EXPRESS_ELEMENT::CTable_PPM_EXPRESS_ELEMENT( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_EXPRESS_ELEMENT" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EXPRESS_ID.setField( "EXPRESS_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EXPRESS_ID );
  ELEMENT_ID.setField( "ELEMENT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ELEMENT_ID );
  ELEMENT_TYPE.setField( "ELEMENT_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( ELEMENT_TYPE );
  SEQ.setField( "SEQ", DATA_DOUBLE, 22, 0 );
  makeTableItem( SEQ );
}

CTable_PPM_EXPRESS_ELEMENT::~CTable_PPM_EXPRESS_ELEMENT( )
{
    close();
}

